package com.sgb.knowledgeshare.view.adapter;

import android.content.Context;
import android.widget.TextView;

import com.sgb.knowledgeshare.R;
import com.sgb.knowledgeshare.entity.TabelListEntity;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;
import java.util.List;

/**
 * Created by：冯齐 on 2021/2/2 15:08
 * Description：
 */
public class LabelDetailsListAdapter extends BaseRecycleAdapter<TabelListEntity> {
    public LabelDetailsListAdapter(Context context, List<TabelListEntity> datas) {
        super(context, R.layout.item_label_details_list, datas);
    }

    @Override
    public void convert(ItemViewHolder holder, TabelListEntity tabelListEntity) {
        TextView name = holder.getItem().findViewById(R.id.name);
        name.setText(tabelListEntity.getLabelName());
    }
}
